/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: SalesAccountServiceImpl.java
 * @PageName		: 매출현황 - 유통 거래처별
 * @Date			: 오후 5:00:48
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.sales.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.pulp.sales.service.SalesAccountService;
import com.pulp.salse.dao.SalesAccountDAO;
import com.pulp.salse.model.SalesAccountInfo;

/**
 * @author 최경민
 * 
 */
public class SalesAccountServiceImpl implements SalesAccountService {
	private SalesAccountDAO salesAccountDAO;

	/**
	 * SalesAccountDAO 객체를 반환한다.
	 * 
	 * @return the sales account dao
	 */
	public SalesAccountDAO getSalesAccountDAO() {
		return salesAccountDAO;
	}

	/**
	 * SalesAccountDAO 객체를 설정한다.
	 * 
	 * @param dao the new sales account dao
	 */
	public void setSalesAccountDAO(SalesAccountDAO dao) {
		this.salesAccountDAO = dao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.SalesAccountService#getSalesAccountLineChartList
	 * ()
	 */
	@Override
	public List<SalesAccountInfo> getSalesAccountLineChartList() throws SQLException {
		return salesAccountDAO.getSalesAccountLineChartList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.SalesAccountService#getSalesAccountPieChartList
	 * ()
	 */
	@Override
	public List<SalesAccountInfo> getSalesAccountPieChartList() throws SQLException {
		return salesAccountDAO.getSalesAccountPieChartList();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.pulp.management.service.SalesAccountService#getSalesAccountTableChartList
	 * ()
	 */
	@Override
	public List<SalesAccountInfo> getSalesAccountTableChartList() throws SQLException {
		return salesAccountDAO.getSalesAccountTableChartList();
	}

}
